package com.wjy.queue;

import lombok.extern.log4j.Log4j2;

/**
 * @Date 2018/12/10
 * @Author ybxxszl
 * @Desc
 **/
@Log4j2
public class DesignTempletQueueTask2 extends AbstractQueueTask {

    static {
        setThreadTask(new DesignTempletQueueTask2());
    }

    @Override
    public String getQueueName() {
        return "DesignTempletQueueTask2";
    }

    @Override
    public boolean executeTask(String data) {
        try {
            log.info("DesignTempletQueueTask2 - START");
            log.info(data);
            log.info("DesignTempletQueueTask2 - END");
        } catch (Exception e) {
            log.error(e);
            e.printStackTrace();
        }
        return true;
    }

}
